package com.eClass.gui;

import java.awt.Color;
import java.awt.Component;
import javax.swing.JTable;
import javax.swing.table.DefaultTableCellRenderer;

public class telefoneRenderer extends DefaultTableCellRenderer {

	private static final long serialVersionUID = -9046849788114834860L;

	public Component getTableCellRendererComponent(JTable jtable, Object valor,
			boolean isSelected, boolean hasFocus, int row, int col) {
		Component c = super.getTableCellRendererComponent(jtable, valor,
				isSelected, hasFocus, row, col);
		if (row == 0) {
			c.setBackground(Color.WHITE);
		} else if (row % 2 == 0) {
			c.setBackground(Color.WHITE);
		} else {
			c.setBackground(new Color(224, 223, 227));
		}
		return c;
	}

}
